<table cellspacing="0" class="b3333 main">
 <tbody><tr>
     <th align="center" class="b0220" rowspan="2">Polugodište</th>
     <th align="center" class="b0220" colspan="2">Broj učenika</th>
     <th align="center" class="b0220" colspan="2">Sa opravdanim izostancima</th>
     <th align="center" class="b0020" colspan="2">Sa neopravdanim izostancima</th>
 </tr>

 <tr>
  <th align="center" class="b0220">Sa izostancima</th>
  <th align="center" class="b0220">Bez izostanaka</th>
  <th align="center" class="b0220">Sa izostancima</th>
  <th align="center" class="b0220">Bez izostanaka</th>
  <th align="center" class="b0020">Sa izostancima</th>
  <th align="center" class="b0020">Bez izostanaka</th>
 </tr>

 <tr>
     <th align="center" class="b0200">Prvo</th>
     <td align="center" class="b0200"><?php echo $uk_1 ?></td>
     <td align="center" class="b0200"><?php echo $uceniks - $uk_1 ?></td>
     <td align="center" class="b0200"><?php echo $op_1 ?></td>
     <td align="center" class="b0200"><?php echo $uceniks - $op_1 ?></td>
     <td align="center" class="b0200"><?php echo $ne_1 ?></td>
     <td align="center" class="b0000"><?php echo $uceniks - $ne_1 ?></td>
 </tr>

 <tr>
     <th align="center" class="b2220">Drugo</th>
     <td align="center" class="b2220"><?php echo $uk_2 ?></td>
     <td align="center" class="b2220"><?php echo $uceniks - $uk_2 ?></td>
     <td align="center" class="b2220"><?php echo $op_2 ?></td>
     <td align="center" class="b2220"><?php echo $uceniks - $op_2 ?></td>
     <td align="center" class="b2220"><?php echo $ne_2 ?></td>
     <td align="center" class="b2020"><?php echo $uceniks - $ne_2 ?></td>
 </tr>

 <tr>
     <th align="center" class="b0200">Ukupno</th>
     <td align="center" class="b0200"><?php echo $uk_uk_2 ?></td>
     <td align="center" class="b0200"><?php echo $uceniks - $uk_uk_2 ?></td>
     <td align="center" class="b0200"><?php echo $op_uk_2 ?></td>
     <td align="center" class="b0200"><?php echo $uceniks - $op_uk_2 ?></td>
     <td align="center" class="b0200"><?php echo $ne_uk_2 ?></td>
     <td align="center" class="b0000"><?php echo $uceniks - $ne_uk_2 ?></td>
 </tr>
</tbody></table>